<?php $this->headScript()->prependFile('/js/form.validate.js'); ?>
<?php $this->headScript()->captureStart() ?>
$(document).ready(function()
{
	v = new Validate('<?php echo sprintf('/%s/validate', $this->module ); ?>');
	v.init('<?php echo $this->form->getId(); ?>');
});
<?php $this->headScript()->captureEnd() ?>

<?php 
echo $this->form;